package com.atguigu.gulimall.member.service;

import com.atguigu.gulimall.member.exception.PhoneExistException;
import com.atguigu.gulimall.member.exception.UserNameExistException;
import com.atguigu.gulimall.member.vo.MemberLoginVo;
import com.atguigu.gulimall.member.vo.MemberRegistVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;
import org.apache.commons.lang.StringUtils;

import java.util.Map;

/**
 * 会员
 *
 * @author hjc
 * @email hjc@gmail.com
 * @date 2020-08-01 00:28:30
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo registVo);

    void checkPhoneIsExist(String phone) throws PhoneExistException;

    void checkUserNameIsExist(String userName) throws UserNameExistException;

    MemberEntity login(MemberLoginVo loginVo);
}

